package org.zoomdev.zoom.security.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 脱敏
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER})
public @interface SensitiveData {

    /**
     * 头部保留几位
     *
     * @return
     */
    int keepFirst() default 0;

    /**
     * 尾部保留几位
     *
     * @return
     */
    int keepLast() default 4;


}
